import Taro from '@tarojs/taro'
import {CartProductVO} from '../api/order'

interface ShopCartContext {
  selectSkuIds: number[]
  setChecked(products: number[]): void
  setUnchecked(products: number[]): void
  allProduct: CartProductVO[]
  setProduct(product: CartProductVO): void
  removeFromCart(skuIds: number[]): void
}
const ShopCartContext = Taro.createContext((null as unknown) as ShopCartContext)

export default ShopCartContext
